package com.paw.ruoyi.admin.common.context;

import java.util.Set;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author Rubble
 * @date 2021/8/27
 **/
@Data
public class UserContext {

  @ApiModelProperty("用户id")
  private Long userId;

  @ApiModelProperty(value = "登录账号")
  private String userName;

  @ApiModelProperty(value = "用户昵称")
  private String nickName;

  @ApiModelProperty(value = "手机号码")
  private String userPhone;

  /**
   * 用户类型
   * @see com.paw.ruoyi.admin.common.enums.UserTypeEnum
   */
  @ApiModelProperty(value = "用户类型")
  private Integer userType;


  @ApiModelProperty(value = "菜单权限")
  private Set<String> permissions;

}
